<?php
namespace Home\Controller;
use Think\Controller;
class IntrodutionController extends Controller {
    public function index(){
        $pro = M('Pro');

        $id=1;
        $res=$pro->join('imooc_cate as a on a.id=imooc_pro.cId','left')
        ->where($id)->select();
        $this->assign("res",$res);
        $rs= $pro->join('imooc_cate as a on a.id=imooc_pro.cId','left')
            ->where($id)->select();
        $this->assign("rs",$rs);
        $ces = $pro->field("mPrice,pDesc,pName,pImg")
            ->select();
        $this->assign('ces',$ces);


        $sj = $pro->field("mPrice,pDesc,pName,pImg,iPrice")->select();
        $this->assign('sj',$sj);

        $this->display();
    }
}